<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<script type="text/javascript"
	src="<c:url value="/static/js/bootstrap-datepicker.js"/>"></script>

<form id="member-form"
	action="<c:url value="/vacation/${vacation.id}/update.html"/>"
	method="post" class="form-horizontal">

	<div class="row-fluid">
		<div class="span12">
			<h3 class="page-title">个人假期管理</h3>
			<ul class="breadcrumb">
				<li><i class="icon-home"></i> <a
					href="<c:url value="/home.html"/>">首页</a> <i
					class="icon-angle-right"></i></li>

				<li><a href="#">请假管理</a></li>
			</ul>
		</div>
	</div>
	<!--  
	<div class="control-group">
		<label class="control-label">姓名:</label>
		<div class="controls">
			<input type="text" name="name" class="m-wrap large"
				value="${member.realName}" readonly="readonly">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">部门:</label>
		<div class="controls">
			<input type="text" name="dept" class="m-wrap large"
				readonly="readonly">
		</div>
	</div>
-->
	<div class="control-group">
		<label class="control-label">类型:</label>
		<div class="controls">
			<select class="m-wrap span12" style="width:300px;"
				name="vacationtype">
				<option value="病假">病假(*)</option>
				<option value="年休假">年休假</option>
				<option value="婚假">婚假</option>
				<option value="产假">产假(流产假)</option>
				<option value="护理假">护理假</option>
				<option value="事假">事假(*)</option>
				<option value="丧假">丧假(*)</option>
				<option value="倒休">倒休</option>
				<!--  
					<c:forEach var="row" items="${dataGrid.rows }">
										<option value="${row.id}">
												${row.questName}
										</option>
									</c:forEach>
									 -->
			</select>
			<h6>注：带*需注明原因 病假需提供医院证明</h6>

		</div>

	</div>

	<div class="control-group">
		<label class="control-label">原因:</label>
		<div class="controls">
			<input type="text" name="cause" class="m-wrap large"
				value="${vacation.cause}">
		</div>
	</div>


	<div class="control-group">
		<label class="control-label">开始时间:</label>
		<div class="controls">
			<input class="date-picker m-wrap large" name="startdate" type="text"
				value="${vacation.startdate}" />
		</div>
	</div>

	<div class="control-group">
		<label class="control-label">结束时间:</label>
		<div class="controls">
			<input class="date-picker m-wrap large" name="enddate" type="text"
				value="${vacation.enddate}" />
		</div>
	</div>

	<div class="control-group">
		<label class="control-label">职务代理人:</label>
		<div class="controls">
			<select class="m-wrap span12" style="width:300px;" name="agent">
				<option value="张一">张一</option>
				<option value="张二">张二</option>
				<option value="张三">张三</option>
				<!--  
									<c:forEach var="row" items="${dataGrid.rows }">
										<option value="${row.id}">
												${row.questName}
										</option>
									</c:forEach>
									 -->
			</select>

		</div>

	</div>



	<div class="form-actions">
		<button class="btn blue" type="submit">
			<i class="icon-ok"></i> 保存
		</button>
		<a href="<c:url value="/vacation/list.html"/>" class="btn black"
			type="button"> <i class="icon-share-alt"></i> 返回
		</a>
	</div>
</form>
<script type="text/javascript">
	$(".date-picker").datepicker({
		format : "yyyy-mm-dd",
		language : 'zh',
		clearBtn : true,
		autoclose : true
	});
</script>
